/**
 * 
 */
package fr.data.structure.main;

import fr.data.structure.pile.Pile;
import fr.data.structure.pile.PileException;

/**
 * @author fred
 * 
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*
		 * /Table de hashage : Chainage lineaire HashTable hashTable = new
		 * HashTable(5); hashTable.put(100, "Hello"); hashTable.put(101,
		 * "world"); hashTable.put(102, "test"); hashTable.put(102, "hash"); try
		 * { System.out.println(hashTable.get(111)); } catch (HashTableException
		 * e) { e.printStackTrace(); }
		 */

		Pile pile = new Pile();
		Integer val = 0;
		for (int i = 0; i < 10; i++) {
			try {
				pile.empiler(val + i);
			} catch (PileException e) {
				e.printStackTrace();
			}
		}
		System.out.println(pile);
		try {
			System.out.println(pile.depiler());
		} catch (PileException e) {
			e.printStackTrace();
		}
	}
}
